import { Controller, UseFilters, UseInterceptors, UsePipes, ValidationPipe, UseGuards } from '@nestjs/common';
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
import { Crud, CrudController } from '@nestjsx/crud';
import { SubsidyInfo } from 'libs/db/entity/subsidy-info.entity';
import { HttpExceptionFilter } from '../_filter/http-exception.filter';
import { LoggingInterceptor } from '../_interceptor/logging.interceptor';
import { SubsidyInfoCrudOps } from './subsidy-info-crud-ops';
import { SubsidyInfoService } from './subsidy-info.service';
import { AuthGuard } from '@nestjs/passport';


@Crud(SubsidyInfoCrudOps)
@UseFilters(HttpExceptionFilter)
@UsePipes(ValidationPipe)
@UseInterceptors(LoggingInterceptor)
@UseGuards(AuthGuard('jwt-web'))
@ApiBearerAuth()
@ApiTags('信息管理 - 补助信息')   //标签
@Controller('subsidy-info')
export class SubsidyInfoController implements CrudController<SubsidyInfo> {
  constructor(public service: SubsidyInfoService) {
  }
}
